
CC := gcc
CXX := g++
CFLAGS := -pthread -g #-Wall

SRC := main.c icar_log.c icar_msg.c icar_utils.c icar_pkg.c icar_end_msg.c icar_flat_msg.c icar_thread.c icar_sock.c icar_conf.c
TEST:= icar_test.c icar_log.c icar_msg.c icar_utils.c icar_pkg.c icar_end_msg.c icar_flat_msg.c icar_thread.c icar_sock.c icar_conf.c

TARGET := icar
TEST_TAR := icar_test

all:
	$(CC) $(CFLAGS) $(SRC) -o $(TARGET)

test:
	$(CC) $(CFLAGS) $(TEST) -o $(TEST_TAR)

clean:
	rm -rf $(TARGET) $(TEST_TAR)
	
